import Login from "@/pages/login";
import App from "../App";
import NotFound from "../pages/error-page";
import LayOut from "../pages/layout";
import home from "./modules/home";
import me from "./modules/me";
import car from "./modules/shopCar";
import types from "./modules/shopType";
import VMeRoutes from "./modules/vender/me";
import vHomeRoutes from "./modules/vender/home";
import VOrderRoutes from "./modules/vender/order";
import VViewShopRoutes from "./modules/vender/shop";

const routes=[
    {
        path:"/",
        element:<LayOut></LayOut>,
        children:[
            me,
            home,
            types,
            car,
            VMeRoutes,
            vHomeRoutes,
            VOrderRoutes
        ]
    },
    VViewShopRoutes,
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"*",
        element:<NotFound></NotFound>
    }
]

export default routes